home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / drivers / win31xtl.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-07-16  |  5KB  |  132 lines

  1. echo off
  2. cls
  3. if ()==(%1) goto NO_ARG
  4. if ()==(%2) goto NO_ARG
  5. if not exist %2\win.com goto INVPATH
  6. if (A:)==(%1) goto DO_IT
  7. if (a:)==(%1) goto DO_IT
  8. if (B:)==(%1) goto DO_IT
  9. if (b:)==(%1) goto DO_IT
  10. goto BADDRV
  11. :NO_ARG
  12. echo                ┌─────────────────────────────────────┐
  13. echo                │** Crystal Font Window 3.1 Drivers **│
  14. echo                └─────────────────────────────────────┘
  15. :ERR
  16. echo        This batch file needs to know where to extract the drivers
  17. echo        and where your Windows directory is located. The drivers
  18. echo        themselves are extracted to floppy, the GSTUNE Utility is
  19. echo        extracted to the Windows directory.
  20. echo  
  21. echo            ┌┬────────────────────────────────────────────┬┐
  22. echo            ││ Usage: INSTALL [Drive] [Windows Directory] ││
  23. echo            └┴────────────────────────────────────────────┴┘
  24. echo  
  25. echo                     Example: INSTALL A: C:\WINDOWS
  26. echo  
  27. echo            The above example will place the Crystal Font drivers
  28. echo            on a floppy in drive A: and copy the GSTUNE Utility to
  29. echo            C:\WINDOWS.
  30. echo  
  31. echo          ATI Customer Support (416) 756-0711 9am-5:30pm EST
  32. echo 
  33. goto DONE
  34. :INVPATH
  35. echo                ┌─────────────────────────────────────┐
  36. echo                │** Crystal Font Window 3.1 Drivers **│
  37. echo                └─────────────────────────────────────┘
  38. echo  
  39. echo                   ERROR: Invalid path "%2"
  40. goto ERR
  41. :BADDRV
  42. echo                ┌─────────────────────────────────────┐
  43. echo                │** Crystal Font Window 3.1 Drivers **│
  44. echo                └─────────────────────────────────────┘
  45. echo  
  46. echo              ERROR: Invalid drive "%1". Must be a floppy.
  47. goto ERR
  48. :DO_IT
  49. cls
  50. echo                ┌─────────────────────────────────────┐
  51. echo                │** Crystal Font Window 3.1 Drivers **│
  52. echo                └─────────────────────────────────────┘
  53. echo                          ─────────────────
  54. echo              This batch file will conveniently extract the
  55. echo              Crystal Font drivers to a floppy and the GSTUNE
  56. echo              Utility to your Windows directory.
  57. echo  
  58. echo             PLEASE PLACE A BLANK FORMATED FLOPPY IN DRIVE %1
  59. echo               ┌─────────────────────────────────────────┐
  60. echo               │ If you are prompted to overwrite a file │
  61. echo               │             press Y  for YES            │
  62. echo               └─────────────────────────────────────────┘
  63. echo               Press any key to continue the installation
  64. echo                         or CONTROL-C to abort.
  65. echo 
  66. pause >nul
  67. cls
  68. echo                ┌─────────────────────────────────────┐
  69. echo                │** Crystal Font Window 3.1 Drivers **│
  70. echo                └─────────────────────────────────────┘
  71. echo                          ─────────────────
  72. echo Decompressing the Crystal Font driver...
  73. xtal31 /e%1
  74. if errorlevel == 0 goto OK
  75. goto ERROR
  76. :OK
  77. echo Process Complete. Press any key to install the GSTUNE Utility.
  78. echo 
  79. pause >nul
  80. cls
  81. echo                ┌─────────────────────────────────────┐
  82. echo                │** Crystal Font Window 3.1 Drivers **│
  83. echo                └─────────────────────────────────────┘
  84. echo Decompressing GSTUNE...
  85. gstune31 /E%2
  86. if errorlevel == 0 goto OK2
  87. goto ERROR2
  88. :OK2
  89. cls
  90. echo                ┌─────────────────────────────────────┐
  91. echo                │** Crystal Font Window 3.1 Drivers **│
  92. echo                └─────────────────────────────────────┘
  93. echo                          ─────────────────
  94. echo                     ╒══════════════════════════╕
  95. echo                     │ Installation successful! │
  96. echo                     ╘══════════════════════════╛
  97. echo  
  98. echo The first step of the Windows 3.1 drivers is now complete. The next
  99. echo step is to tell Windows to use these drivers. Please read the README.TXT
  100. echo file for instructions on how to tell Windows to use these new drivers.
  101. echo Also read GSTUNE.TXT to discover how to complete the installation of the
  102. echo GSTUNE utility.
  103. echo  
  104. echo README.TXT is located in "%1" floppy disk that was just created.
  105. echo GSTUNE.TXT is located in your "%2" directory.
  106. echo  
  107. echo IMPORTANT: Failure to read the above readme file will result in the
  108. echo            driver not functioning.
  109. echo 
  110. goto DONE
  111. :ERROR
  112. echo            ERROR: Problem extracting Crystal Font driver.
  113. goto OTHER
  114. :ERROR2
  115. echo              ERROR: Problem extracting GSTUNE Utility.
  116. :OTHER
  117. echo                ┌─────────────────────────────────────┐
  118. echo                │** Crystal Font Window 3.1 Drivers **│
  119. echo                └─────────────────────────────────────┘
  120. echo                          ─────────────────
  121. echo                        ╒═════════════════════╕
  122. echo                        │ Installation Failed │
  123. echo                        ╘═════════════════════╛
  124. echo  
  125. echo  Please check the drive/path that you specified and ensure it is
  126. echo  correct. If this batch file continues to present problems, please
  127. echo  call ATI for assistance.
  128. echo  
  129. echo          ATI Customer Support (416) 756-0711 9am-5:30pm EST
  130. echo 
  131. :DONE
  132.